' add all elements from an array or list to the new list
dim $newlst$ as list
$newlst$.initialize
dim $lst1$ as list
$lst1$.initialize2(Array as int(1,2,3))
$newlst$.addall($lst1$)
' or using an array directly
$newlst$.addall(Array as int(1,2,3))
$end$